package com.dgw.config;

import com.dgw.service.HelloServices;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: spring-boot-config-01
 * @description:
 * @author: Mr.Dai
 * @create: 2019-11-26 11:05
 **/
//@Configuration
public class MyAppConfig {
    @Bean(name = "helloServices")
    public HelloServices getHelloServices(){
        System.out.println("添加HelloServices组件");
        return new HelloServices();
    }
}
